﻿//-----------------------------------------------------------------------
// <Copyright>
// * Copyright (C) 2022 RuYiAdmin All Rights Reserved
// </Copyright>
//-----------------------------------------------------------------------

using RuYiAdmin.Net.Entity.Base;
using SqlSugar;
using System;
using System.ComponentModel.DataAnnotations;

namespace RuYiAdmin.Net.Entity.BusinessEntity.SystemManagement
{
    /// <summary>
    /// 数据字典模型
    /// </summary>
    [SugarTable("sys_code_table")]
    public class SysCodeTable : RuYiAdminBaseEntity
    {
        /// <summary>
        /// 编码名称
        /// </summary>
        [Required, MaxLength(128)]
        [SugarColumn(ColumnName = "CODE_NAME")]
        public String CodeName { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [Required, MaxLength(128)]
        [SugarColumn(ColumnName = "CODE")]
        public String Code { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        [MaxLength(256)]
        [SugarColumn(ColumnName = "VALUE")]
        public String Value { get; set; }

        /// <summary>
        /// 父键
        /// </summary>
        [SugarColumn(ColumnName = "PARENT_ID")]
        public Nullable<Guid> ParentId { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        [SugarColumn(ColumnName = "SERIAL_NUMBER")]
        public Nullable<int> SerialNumber { get; set; }
    }
}
